package com.tianqu.tms.core.security;

import com.tianqu.tms.core.exception.TmsException;
import com.tianqu.tms.core.util.Registry;
import com.tianqu.tms.core.util.TmsConstants;
import com.tianqu.tms.entity.User;

/**
 * 
 * @author liugang
 *
 */

public abstract class TmsUserProfileFactory implements TmsConstants {
	/**
	 * @return UserProfileFactory
	 */
	public static TmsUserProfileFactory getInstance() {
		return (TmsUserProfileFactory) Registry.get(USER_PROFILE_FACTORY);
	}
	/**
	 * 
	 * @param userId
	 * @return
	 * @throws TisException
	 */
	public abstract User getTmsUser(String userId,String password) throws TmsException;
	/**
	 * 
	 * @param userId
	 * @return
	 * @throws TisException
	 */
	public abstract TmsUserProfile getUserProfile(String userId) throws TmsException ;

}
